package com.bckj.fastboot.paid.api.model;

import com.bckj.fastboot.core.sql.QueryMapping;
import com.bckj.fastboot.core.sql.enums.OperatorEnum;
import lombok.Data;

import java.util.List;

@Data
public class PayConfigQuery {

    /**
     * 应用ID
     */
    @QueryMapping(exist = false)
    private String appId;
    /**
     * 应用密钥
     */
    @QueryMapping("pc.app_secret")
    private String appSecret;
    /**
     * 支付商户配置ID
     */
    @QueryMapping(value = "merchant_id", operator = OperatorEnum.NE)
    private Long payMerchantConfigId;

    @QueryMapping(value = "pc.app_id", operator = OperatorEnum.IN)
    private List<String> appIds;


    @QueryMapping(value = "pc.id", operator = OperatorEnum.IN)
    private List<Long> ids;

    @QueryMapping(value = "pc.create_time", operator = OperatorEnum.BETWEEN)
    private String[] timeRange;

    @QueryMapping(value = "pc.notify_url", operator = OperatorEnum.LIKE_RIGHT)
    private String notifyUrl;
}
